import request from '@/utils/request'

// 查询投资策略列表
export function listGpSecurityStrategy(query) {
  return request({
    url: '/strategy/gpSecurityStrategy/list',
    method: 'get',
    params: query
  })
}

// 查询投资策略详细
export function getGpSecurityStrategy(id) {
  return request({
    url: '/strategy/gpSecurityStrategy/' + id,
    method: 'get'
  })
}

// 根据基金管理人ID查询投资策略详细
export function getStrategyByGpSecurityId(id) {
  return request({
    url: '/strategy/gpSecurityStrategy/getByGpSecurityId/' + id,
    method: 'get'
  })
}

// 保存投资策略
export function saveGpSecurityStrategy(data) {
  return request({
    url: '/strategy/gpSecurityStrategy/save',
    method: 'post',
    data: data
  })
}

// 删除投资策略
export function delGpSecurityStrategy(id) {
  return request({
    url: '/strategy/gpSecurityStrategy/' + id,
    method: 'delete'
  })
}

// 导出投资策略
export function exportGpSecurityStrategy(query) {
  return request({
    url: '/strategy/gpSecurityStrategy/export',
    method: 'get',
    params: query
  })
}
